﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrderPrint.aspx.cs" Inherits="PlugNT.App.Shop.Web.Pre_OrderPrint" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>评论列表</title>
<script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript">
    $(function () {
        $("#orPrint").click(function () {
            var oWin = window.open("", "_blank");
            oWin.document.write(document.getElementById("content").innerHTML);
            oWin.focus();
            oWin.document.close();
            oWin.print();
            oWin.close();
        });
    });
</script>
</head>
<body>


<form id="form1" runat="server">

       <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#ecf5ff">
        <tr>
          <td bgcolor="#F4FBFF">

            <div id="content">
                <table width="800" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#DFDFDF" id="add_table">
                  <tr>
                    <td height="3" style="background-color:#ccc;" colspan="2"></td>
                  </tr>
                  
                  <tr>
                    <td width="133px;" align="right" nowrap bgcolor="#F4FBFF">用户信息： &nbsp;</td>
                    <td width="91%" bgcolor="#F4FBFF">
                        <table cellpadding="8" cellspacing="8" style="width:100%;">
                            <tr style="background-color:#dfdfdf;">
                             <td width="20%">用户ID</td><td>用户名</td><td width="20%">剩余金额(￥)</td><td width="20%">注册时间</td>
                            </tr>
                            <tr>
                             <td><asp:Literal ID="litId" runat="server"></asp:Literal></td>
                             <td style="width:300px;overflow:hidden; white-space:nowrap; text-overflow:ellipsis;">
                                <asp:Literal ID="litUID" runat="server"></asp:Literal>
                             </td>
                             <td><asp:Literal ID="litMoney" runat="server"></asp:Literal></td>
                             <td><asp:Literal ID="litCreatetime" runat="server"></asp:Literal></td>                             
                            </tr>
                        </table>
                    </td>
                  </tr>

                  <tr>
                    <td width="133px;" align="right" nowrap bgcolor="#F4FBFF">收货信息： &nbsp;</td>
                    <td width="91%" bgcolor="#F4FBFF">
                        <table cellpadding="8" cellspacing="8" style="width:100%;">
                            <tr style="background-color:#dfdfdf;">
                             <td width="20%">收货人</td><td>收货地址</td><td width="20%">邮编</td><td width="20%">手机和电话</td>
                            </tr>
                            <tr>
                             <td><asp:Literal ID="Literal1" runat="server"></asp:Literal></td>
                             <td style="width:300px;overflow:hidden; white-space:nowrap; text-overflow:ellipsis;">
                                <asp:Literal ID="Literal2" runat="server"></asp:Literal>
                             </td>
                             <td><asp:Literal ID="Literal3" runat="server"></asp:Literal></td>
                             <td><asp:Literal ID="Literal4" runat="server"></asp:Literal></td>                             
                            </tr>
                        </table>
                    </td>
                  </tr>

                  <tr>
                    <td width="133px;" align="right" nowrap bgcolor="#F4FBFF">商品信息： &nbsp;</td>
                    <td width="91%" bgcolor="#F4FBFF">
                        <table cellpadding="8" cellspacing="8" style="width:100%;">
                            <tr style="background-color:#dfdfdf;">
                             <td width="20%">商品名称</td><td width="20%">商品属性</td><td width="10%">商品单价(￥)</td><td width="10%">商品售价(￥)</td>
                             <td width="10%">属性费(￥)</td><td width="10%">数量</td><td width="20%">支付合计(￥)</td>
                            </tr>
                            <asp:Repeater ID="rptGoods" runat="server">
                              <ItemTemplate>
                                <tr>
                                    <td style="width:200px;overflow:hidden; white-space:nowrap; text-overflow:ellipsis;">
                                    <%#Eval("fare").ToString()%>
                                    </td>
                                    <td><%#Eval("fare").ToString()%></td>
                                    <td><%#Eval("fare").ToString()%></td>   
                                    <td><%#Eval("fare").ToString()%></td>   
                                    <td><%#Eval("fare").ToString()%></td>   
                                    <td><%#Eval("fare").ToString()%></td> 
                                    <td><%#Eval("fare").ToString()%></td> 
                                </tr>
                              </ItemTemplate>
                            </asp:Repeater>
                        </table>
                    </td>
                  </tr>
                  
                  <tr>
                    <td width="133px;" align="right" nowrap bgcolor="#F4FBFF">订单信息： &nbsp;</td>
                    <td width="91%" bgcolor="#F4FBFF">
                        <table cellpadding="8" cellspacing="8" style="width:100%;">
                            <tr>
                             <td style="background-color:#dfdfdf;">订单编号</td><td><asp:Literal ID="litOrderNo" runat="server"></asp:Literal></td>
                             <td style="background-color:#dfdfdf;">订单日期</td><td><asp:Literal ID="litOrderTime" runat="server"></asp:Literal></td>
                            </tr>
                            <tr>
                             <td style="background-color:#dfdfdf;">支付方式</td><td><asp:Literal ID="litOrderPayService" runat="server"></asp:Literal></td>
                             <td style="background-color:#dfdfdf;">商品折扣</td><td><asp:Literal ID="litOrderRebate" runat="server"></asp:Literal></td>
                            </tr>
                            <tr>
                             <!--<td style="background-color:#dfdfdf;">购买数量</td><td></td>-->
                             <td style="background-color:#dfdfdf;">收款时间</td><td><asp:Literal ID="litOrderNowTime" runat="server"></asp:Literal></td>
                             <td style="background-color:#dfdfdf;">订单状态</td><td><asp:Literal ID="litOrderState" runat="server"></asp:Literal></td>
                            </tr>                            
                            <tr>
                             <td style="background-color:#dfdfdf;">收款总金额(￥)</td>
                             <td style="font-weight:bold;">
                                <asp:Literal ID="litOrderMoney" runat="server"></asp:Literal>
                             </td>        
                             <td style="background-color:#dfdfdf;">退款金额(￥)</td>           
                             <td style="font-weight:bold;">
                                <asp:Literal ID="litOrderExitMoney" runat="server"></asp:Literal>
                             </td>        
                            </tr>
                        </table>
                    </td>
                  </tr>

                </table>
            </div>

          </td>
          </tr>

          <tr>
            <td height="25" align="center" bgcolor="#F4FBFF">
                <button id="orPrint" class="bt">确认无误马上打印</button>
            </td>
          </tr>
      </table>

</form>

</body>
</html>